home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
gfx
/
fu1_62.lha
/
fu
/
Rexx
/
ITERATIONANIMATION.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-04-01
|
981b
|
54 lines
/* FU Arexxtester */
options results
ADDRESS REXX_FU
say '
FU-ArexxAnim
';say;
zyklen=3
SetIter zyklen;
if RC~=0 then call AppError('SetIter',RC);
x1=1.8934;y1=-1.7549;x2=2.1944;y2=-1.5196
SetZoom x1 y1 x2 y2;
if RC~=0 then call AppError('SetZoom',RC);
frames=50
do i=0 to frames
name='xh3:frames/MAGNETZOOM.'right(i,3,'0');
say 'Working on : ' name;
RenderPicture;
if RC~=0 then call AppError('RenderPicture',RC);
SavePicture name '2'
if RC~=0 then call AppError('SavePicture',RC);
zyklen=zyklen+1;
SetIter zyklen;
end
ActivateFU;
if RC~=0 then call AppError('ActivateFU',RC);
ExitFU;
if RC~=0 then call AppError('ExitFU',RC);
exit
AppError:procedure
cmd=arg(1);
ret=arg(2);
say '
Application Error
';say;
say 'Command 'cmd' failed with Returncode 'ret;
select
when ret='1' then say ' => unknown command';
when ret='2' then say ' => unknown parameter';
otherwise say ' => unknown returncode';
end
say;
return